XCO Provisioning of DHCP Relay Server and Gateway

You can provide DHCP Relay configurations (dhcp-relay- address-ip-add/delete and dhcp-relay-gateway-ip-add/delete) when you create or update an EPG.

CLI Options for DHCP Relay Server and Gateway

The following table describes the available CLI options for DHCP relay server and DHCP relay gateway (dhcp-relay-address-ip-add/delete and dhcp-relay-gateway-ip-add/delete) configurations:

DHCP Configuration CLI Options Description
DHCP Relay Server Configuration --dhcpv4-relay-address-ip DHCP Server IPv4 Address
--dhcpv4-relay-address-ip-vrf DHCP Server IPv4 Address VRF
--dhcpv6-relay-address-ip DHCP Server IPv6 Address
--dhcpv6-relay-address-ip-vrf DHCP Server IPv6 Address VRF
--dhcpv6-relay-address-ip-interface DHCP Server IPv6 Address Interface (eth and po)
DHCP Relay Gateway Configuration --dhcpv4-relay-gateway-ip DHCP Gateway IPv4 Address
--dhcpv4-relay-gateway-ip-interface DHCP Gateway IPv4 Address Interface (eth)
--dhcpv4-relay-gateway-interface DHCP Gateway IPv4 Interface (eth)
--dhcpv6-relay-gateway-interface DHCP Gateway IPv6 Interface (eth)
--dhcpv6-relay-gateway-interface-ip DHCP Gateway IPv6 Interface (eth) Address
Note

Note

SLX requires the interface type and interface name for configuring the IPv6 DHCP relay gateway. XCO, in line with SLX, needs these two attributes to create or update operations.

DHCP Client and DHCP Server Residing in Same VRF

When a DHCP client and a DHCP server reside in the same VRF, use the dhcpv4-relay-address-ip and dhcpv6-relay-address-ip CLI options to provide the DHCP server address for a given tenant ctag. The DHCP server VRF is auto-derived as a VRF to which the tenant ctag belongs to.

Click to expand in new window
MultiRack Non-Clos Fabric with DHCP Server, Client, and Relay
efa tenant epg create --name epg1 --tenant ten1 --po ten1po1,ten1po2                                
           --switchport-mode trunk --vrf vrf10 --ctag-range 10 
           --anycast-ip 10:10.10.10.10/24 
           --dhcpv4-relay-address-ip  10,10.20.246.1:10.1.1.1  
           --dhcpv4-relay-address-ip  10,10.20.246.2:10.1.1.1

efa tenant epg show --tenant ten1  --detail --name epg1
=================================================================================================================================
Name          : epg1
Tenant        : ten1
Type          : extension
State         : epg-with-port-group-and-ctag-range
Description   :

Ports         :
POs           : po1, po2

Port Property : SwitchPort Mode               : trunk
              : Native Vlan Tagging           : false
              : Single-Homed BFD Session Type : auto

NW Policy     : Ctag Range                    : 10
              : VRF                           : vrf10
              : L3Vni                         : 8190
+------------+-------------+-----------+------------+-------------+
| MAC ACL IN | MAC ACL OUT | IP ACL IN | IP ACL OUT | IPv6 ACL IN |
+------------+-------------+-----------+------------+-------------+
Port Property ACLs

+---------+-------------+-------------+
| Port    |  Dev State  |  App State  |
+---------+-------------+-------------+
| ten1po1 | provisioned | cfg-in-sync |
+---------+-------------+-------------+
| ten1po2 | provisioned | cfg-in-sync |
+---------+-------------+-------------+
Port Property States

+----+-------------+------+----+--------+-------+--------+----------------------+---+------+--------------+------------+-----------+-----------+ 
|Ctag|     Ctag    |L2Vni |BD  |Anycast |Anycast|Suppress|      Local IP        |IP |IPv6  |   IPv6 ND    |  IPv6 ND   | Dev State | App State | 
|    | Description |      |Name|IPv4    |IPv6   | ARP/ND |[Device-IP->Local-IP] |MTU|ND MTU|Managed Config|Other Config|           |           | 
+----+-------------+------+----+--------+-------+--------+----------------------+---+------+--------------+------------+-----------+-----------+ 
|360 |Tenant L3    |11003 |    |10.10.  |       |  T/F   |                      |   |      |    false     |   false    |provisioned|cfg-in-sync| 
|    |Extended VLAN|      |    |10.10/24|       |        |                      |   |      |              |            |           |           |
+----+-------------+------+----+--------+-------+--------+----------------------+---+------+--------------+------------+-----------+-----------+

Network Property [Flags : * - Native Vlan]
+------+-------------------------------+
| Ctag |           AddressIP           |
|      | Device-IP->[{Address-IP,Vrf}] |
|      |                               |
+------+-------------------------------+
|  10  |  10.20.246.1->[{10.1.1.1,}]   |
|      |  10.20.246.2->[{10.1.1.1,}]   |
+------+-------------------------------+
DHCP Relay Ips
Rack1Device1# show running-config interface Ve
interface Ve 10
vrf forwarding vrf10
ip anycast-address 10.10.10.10/24
ip dhcp relay address 10.1.1.1
no shutdown
Rack2Device1# show running-config interface Ve
interface Ve 10
vrf forwarding vrf10
ip anycast-address 10.10.10.10/24
no shutdown
!
Rack1Device2# show running-config interface Ve
interface Ve 10
vrf forwarding vrf10
ip anycast-address 10.10.10.10/24
ip dhcp relay address 10.1.1.1
no shutdown
!
Rack2Device2# show running-config interface Ve
interface Ve 10
vrf forwarding vrf10
ip anycast-address 10.10.10.10/24
no shutdown
!

DHCP Client and DHCP Server Residing in Different VRF

Use the use-vrf option on SLX to support the DHCP client and DHCP server when they are in different VRF.

Use the following CLI options to configure a VRF for a DHCP server address:
  • dhcpv4-relay-address-ip-vrf
  • dhcpv6-relay-address-ip-vrf
Note

Note

Configure VRF route-leaking out of band (without XCO) on the switching or routing hardware, so that the DHCP Client and DHCP Server residing in different VRFs can communicate with each other.

DHCP Relay Server IPv4 and IPv6 Support

DHCP Relay Server supports IPv4 and IPv6.

Use the following CLI options to configure a DHCP IPv6 server address:
  • dhcpv6-relay-address-ip
  • dhcpv6-relay-address-ip-vrf
  • dhcpv6-relay-address-ip-interface
Note

Note

Ensure that the interface provided in the dhcpv6-relay-address-ip-interface option and the tenant ctag must belong to the same VRF.

DHCP Relay Gateway IPv4 and IPv6 Support

DHCP Relay Gateway supports IPv4 and IPv6. You can configure only one DHCP Relay Gateway per tenant network (ctag). Provide the DHCP Relay Gateway configuration when you create or update a DHCP Relay Gateway (dhcp-relay-gateway-ip-add/delete).

Use the following CLI to configure a DHCP Relay Gateway:
  • dhcpv4-relay-gateway-ip
  • dhcpv4-relay-gateway-ip-interface
  • dhcpv4-relay-gateway-interface
  • dhcpv6-relay-gateway-interface
  • dhcpv6-relay-gateway-interface-ip
Note

Note

For information on enabling or disabling flooding for IP DHCP relay on a device, see Enable or Disable Flooding for IP DHCP Relay.